package number

import (
	"github.com/google/wire"
	"sieve_admin_server/app/api/util"
	"sieve_admin_server/app/server"
)

var _ util.API = (*CustomizedAPI)(nil)

var CustomizedSet = wire.NewSet(wire.Struct(new(CustomizedAPI), "*"))

type CustomizedAPI struct {
	util.EmptyAPI
}

func (a *CustomizedAPI) GetApis() []*server.BatchModTree {
	return []*server.BatchModTree{
		{
			Obj:   a,
			Name:  "customized",
			Title: "自定义号码生成", Perms: []*server.Perm{
				{Name: "createTask", Title: "创建生成号码任务"},
				{Name: "query", Title: "查询"},
				{Name: "getRemarkCount", Title: "获取号码标记数量"},
			},
			Order: 8,
		},
	}
}
